@model IEnumerable<AlphaWebsite.Models.Guests>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            GuestFullName
        </th>
        <th>
            HouseholdID
        </th>
        <th>
            WeddingHouseholds
        </th>
        <th>
            EventListID
        </th>
        <th>
            WeddingEventLists
        </th>
        <th>
            WeddingSideID
        </th>
        <th>
            WeddingSides
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.GuestID }) |
            @Html.ActionLink("Details", "Details", new { id=item.GuestID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.GuestID })
        </td>
        <td>
			@item.GuestFullName
        </td>
        <td>
			@item.HouseholdID
        </td>
        <td>
			@Html.DisplayTextFor(_ => item.WeddingHouseholds).ToString()
        </td>
        <td>
			@item.EventListID
        </td>
        <td>
			@Html.DisplayTextFor(_ => item.WeddingEventLists).ToString()
        </td>
        <td>
			@item.WeddingSideID
        </td>
        <td>
			@Html.DisplayTextFor(_ => item.WeddingSides).ToString()
        </td>
    </tr>
}

</table>


